package com.greensam.pixelengine.repository;

import com.greensam.pixelengine.pojo.entity.PicturePo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author Macro_Ray
 * @since 2025/6/19 15:10
 */
@Repository
public interface PictureRepository extends JpaRepository<PicturePo, Long>, QuerydslPredicateExecutor<PicturePo> {

    Optional<PicturePo> findByIdAndDelete(Long id, Boolean delete);
}
